<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>loading</title>
</head>
<body>
    <script> 
    function f1(){
        var userAgentInfo = navigator.userAgent;
        var Agents = ["Android", "iPhone",
                    "SymbianOS", "Windows Phone",
                    "iPad", "iPod"];
        var flag = 1;
        for (var v = 0; v < Agents.length; v++) {
            if (userAgentInfo.indexOf(Agents[v]) > 0) {
                flag = 0;
                break;
            }
        }
        return flag;
    }
    var temp=parseInt(f1());
    if(temp==1){
        location.href="mainPage.jsp";
    }else if(temp==0){
        location.href="phoneClient.html";
    }
    </script>
</body>
</html>